﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Sqo;

namespace Ivvy_Silverlight
{
    /// [Generated Jan 30 2011]
    public partial class i_Entry_Field : ISqoDataObject
    {

        #region "private fields"

        private int _Entry_Field_ID;
        private int _Entry_ID;
        private int _Field_ID;
        private int _Index;
        private string _Caption;
        private bool _Itinerary_Include;
        private string _GUID;

        #endregion

        #region "public properties"

        public int Entry_Field_ID
        {
            get { return _Entry_Field_ID; }
            set { _Entry_Field_ID = value; }
        }
        public int Entry_ID
        {
            get { return _Entry_ID; }
            set { _Entry_ID = value; }
        }
        public int Field_ID
        {
            get { return _Field_ID; }
            set { _Field_ID = value; }
        }
        public int Index
        {
            get { return _Index; }
            set { _Index = value; }
        }
        public string Caption
        {
            get { return _Caption; }
            set { _Caption = value; }
        }
        public bool Itinerary_Include
        {
            get { return _Itinerary_Include; }
            set { _Itinerary_Include = value; }
        }
        public string GUID
        {
            get { return _GUID; }
            set { _GUID = value; }
        }

        #endregion               

        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }
        int ISqoDataObject.OID { get { return Entry_Field_ID; } set { } }
        #endregion

        #region "MAPPER"
        public static Ivvy_Silverlight.i_Entry_Field Convert(i7SR.Entry_Field od_Entry_Field)
        {
            return new Ivvy_Silverlight.i_Entry_Field()
            {

                Entry_Field_ID = Utils.IsNull(od_Entry_Field.Entry_Field_ID),
                Entry_ID = Utils.IsNull(od_Entry_Field.Entry_ID),
                Field_ID = Utils.IsNull(od_Entry_Field.Field_ID),
                Index = Utils.IsNull(od_Entry_Field.Index),
                Caption = Utils.IsNull(od_Entry_Field.Caption),
                Itinerary_Include = Utils.IsNull(od_Entry_Field.Itinerary_Include),
                GUID = Utils.IsNull(od_Entry_Field.GUID),

            };
        }
        #endregion


        #region "REVERSEMAPPER"
        public static Ivvy_Silverlight.i7SR.Entry_Field ReverseConvert(i_Entry_Field od_Entry_Field)
        {
            return new Ivvy_Silverlight.i7SR.Entry_Field()
            {

                Entry_Field_ID = Utils.ReverseIsNull(od_Entry_Field.Entry_Field_ID).Value,
                Entry_ID = Utils.ReverseIsNull(od_Entry_Field.Entry_ID).Value,
                Field_ID = Utils.ReverseIsNull(od_Entry_Field.Field_ID).Value,
                Index = Utils.ReverseIsNull(od_Entry_Field.Index),
                Caption = Utils.ReverseIsNull(od_Entry_Field.Caption),
                Itinerary_Include = Utils.ReverseIsNull(od_Entry_Field.Itinerary_Include),
                GUID = Utils.ReverseIsNull(od_Entry_Field.GUID),

            };
        }
        #endregion

    }//public partial class i_Entry_Field : ISqoDataObject
        

}//namespace EDMD

